home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / etman.lha / man / mann / macro.Enum.n < prev    next >
Text File  |  1991-10-24  |  735b  |  43 lines

  1.  
  2.  
  3. .SH MACRO NAME
  4. \fBEnum(
  5. enum anyEnumType enumVariable)
  6. .SH DESCRIPTION
  7. \fBEnum\fP converts integer variables to variables of enum types. This is used in the \fImethod Object::ReadFrom\fP to read the values of enums from C++ streams. For example:
  8. .na
  9. .nf
  10.  
  11. istream& MyClass::ReadFrom(istream& is)
  12. {
  13.     enum VObjAlign alignFlags;
  14.     return is \>\> Enum(alignFlags);
  15. }
  16.  
  17.  
  18. .ad b
  19. .fi
  20. See also \fImacro Bool\fP.
  21. macro \fBEnum\fP is sometimesused.
  22. .SH ARGUMENTS
  23. .TP
  24. \fBenum anyEnumType enumVariable
  25. .br
  26. a variable of any enum type
  27. .SH CATEGORIES
  28.  
  29. .na
  30. inputoutput
  31. .ad b
  32.  
  33. .SH FILES
  34. .PD 0
  35. .TP 20
  36. declaration:
  37. \fBTypes.h
  38. .SH HISTORY
  39. joe@csesbg.at    Mon Jun 17 19:47 1991    reworked
  40. .br
  41. joe@csesbg.at    Wed Jun 19 18:24 1991    added IsKindOf, Guard
  42. .br
  43.